ImageOptimizer\Classes\Route S

Total Complexity 40
Dependencies 7
Dependents 0
Total lines 356
Lines of code 139
Logical lines of code 64
Comment lines 162
Methods 22
Properties 5

Methods 22

Method Rating Maintainability Complexity Lines of code
rest_api_init()
S
55 6 19
method_exists_in_current_class()
S
60 4 13
respond_error_json()
S
60 3 13
maybe_add_response_to_swagger()
S
61 2 12
verify_nonce_and_capability()
S
65 2 9
verify_nonce()
S
66 2 8
permission_callback()
S
69 2 7
respond_wrong_method()
S
69 2 6
maybe_add_args_to_config()
S
66 2 8
get_permission_callback_method()
S
69 2 6
get_callback_method()
S
71 2 5
build_endpoint_method_config()
S
66 1 9
callback()
S
80 1 3
respond_with_code()
S
79 1 3
get_user_from_request()
S
79 1 3
get_arguments()
S
82 1 3
get_endpoint()
S
100 1 0
get_name()
S
100 1 0
get_self_url()
S
79 1 3
respond_success_json()
S
71 1 6
get_methods()
S
100 1 0
__construct()
S
79 1 3